import urllib.request as r
import re
import codecs


url='http://www.88dus.com/xiaoshuo/43/43445/11399402.html'
html=r.urlopen(url).read().decode('gbk')
reqre=re.compile('<div class="yd_text2">(.*?)</div>',re.S).findall(html)
repore=re.compile('&nbsp;&nbsp;&nbsp;&nbsp;(.*?)<br />').findall(html)
#print(reqre[0])
for i in repore:

    with codecs.open('1.txt','a','utf-8')as p:
        p.write(i)


